package com.xuecheng.content.api;

import com.xuecheng.base.model.PageParam;
import com.xuecheng.content.model.dto.AddCourseDto;
import com.xuecheng.content.model.dto.CourseBaseInfoDto;
import com.xuecheng.content.model.dto.CourseCategoryTreeDto;
import com.xuecheng.content.model.dto.QueryCourseParamDto;
import com.xuecheng.content.model.po.CourseBase;
import com.xuecheng.content.model.po.PageResult;
import com.xuecheng.content.service.CourseBaseService;
import com.xuecheng.content.service.impl.CourseCategoryServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 冯佳鑫 又菜又爱学
 * @version 1.0
 * @DATE now()
 * 课程信息编辑接口
 *
 */
@Api(value = "课程类型接口" ,tags ="课程类型接口")
@RestController
public class CourseCategoryController {
    @Autowired
    CourseCategoryServiceImpl courseCategoryService;
    @ApiOperation("课程类型接口")
    @GetMapping("/course-category/tree-nodes")
    public List<CourseCategoryTreeDto> treenodes(){
        List<CourseCategoryTreeDto> treenodes = courseCategoryService.treenodes("1");

return treenodes;
    }


}
